package cn.itcast.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.itcast.domain.Product;
import cn.itcast.service.ProductService;

@Controller
public class ProductController {

	@Autowired
	private ProductService productService;
	
	@RequestMapping("findAll.do")
	public String findAll() {
		
		List<Product> all = productService.findAll();
		System.out.println("成功");
		
		return"success";
	}
	
	
	
}
